//
//  TempViewController.swift
//  Weibo
//
//  Created by 付启刚 on 15/12/26.
//  Copyright © 2015年 faq. All rights reserved.
//

import UIKit
class TempViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor=UIColor.whiteColor()
        title="\(navigationController?.childViewControllers.count ?? 0)个控制器"
        //设置右边的导航按钮
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", style: .Plain, target: self, action: "push")
    }
    @objc private func push() {
    let temp = TempViewController()
        navigationController?.pushViewController(temp, animated: true)
    }
    
}
